package com.sinping.qh.repository.mongo;

import com.sinping.qh.domain.common.BuildingDomain;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 楼宇
 *
 * @author Tiansx
 * @create 2018-05-29 13:40
 **/
public interface BuildingReposity extends MongoRepository<BuildingDomain,String> {
     List<BuildingDomain>findAllByBuildingNameAndStatus(String buildingName,String status);

     /**
      * 查找有效的楼宇
      * @param status
      * @return
      */
     List<BuildingDomain>findAllByStatus(String status);
}
